//
//  ITSTableViewCell.h
//  XCar
//
//  Created by Rainbow on 2/17/11.
//  Copyright 2011 iTotemStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Shop.h"
#import "ImageInfo.h"

@interface ITSTableViewCell : UITableViewCell {

	UIImageView *imageView;
	NSOperationQueue *requestDataQueue;
	NSMutableDictionary *imageCache;
	NSString *stubImageName;
    Shop *shop;
    NSInteger index;
    UILabel *nameLabel;
    UILabel *descrptionLabel;
    
    BOOL saved;
}

@property (nonatomic,retain)UIImageView *imageView;
@property (nonatomic,retain)Shop *shop;
@property (nonatomic,retain)NSMutableDictionary *imageCache;
@property (nonatomic,retain)NSString *stubImageName;
@property (nonatomic,assign)NSInteger index;
@property (nonatomic,assign)BOOL saved;
@property (nonatomic,retain)UILabel *nameLabel;
@property (nonatomic,retain)UILabel *descrptionLabel;

- (id)initWithStyle:(UITableViewCellStyle)style
	reuseIdentifier:(NSString *)reuseIdentifier
	  stubImageName:(NSString *)stubImgName
		 imageCache:(NSMutableDictionary *)imgCache
               shop:(Shop *)aShop
              index:(NSInteger)aIndex
          imageRect:(CGRect)rect;

- (void)updateWithShop:(Shop *)aShop
			 imageCache:(NSMutableDictionary *)imgCache
                  index:(NSInteger)aIndex;

- (void)setupImageView;

- (void)setSelecting:(BOOL)canSelect;

- (void)setSaved;

@end
